package net.csdn.business.common.constant;

/**
 * @author wanghang
 * @date 2022/6/15 12:09
 */
public class AuthConstants {

    public static final int COOKIE_MAX_AGE = 60*60*24*180;

    public static final String TOKEN_KEY = "token";
    public static final String USER_ID = "USER_ID";
    public static final String USER_NAME = "USER_NAME";
    public static final String NICK_NAME = "NICK_NAME";
    //public static final String USER_NAME_SPACE = "USER_NAME_SPACE";*/
    public static final String ADMIN_ROLE_CODE = "ADMIN_ROLE_CODE";
    /**
     * 设备id参数名
     */
    public static final String DEVICE_ID = "device_id";


    public static final String ATOMGIT_ID_TOKEN = "ATOMGIT_ID_TOKEN";
    public static final String ATOMGIT_ACCESS_TOKEN = "ATOMGIT_ACCESS_TOKEN";
    public static final String ATOMGIT_REFRESH_TOKEN = "ATOMGIT_REFRESH_TOKEN";
    public static final String ATOMGIT_EXPIRES_IN = "ATOMGIT_EXPIRES_IN";
    public static final String ATOMGIT_EXPIRES_AT = "ATOMGIT_EXPIRES_AT";

    // 是否模拟用户 1-是 else 否
    public static final String SIMULATE_SYMBOL_VALUE = "1";
    public static final String ATOMGIT_SIMULATE_SYMBOL = "ATOMGIT_SIMULATE_SYMBOL";
    // 模拟状态下的管理员用户ID、用户名
    public static final String ATOMGIT_ADMIN_USER_ID = "ATOMGIT_ADMIN_USER_ID";
    public static final String ATOMGIT_ADMIN_USER_NAME = "ATOMGIT_ADMIN_USER_NAME";

    // 账号合并token缓存前缀
    public static final String CACHE_KEY_ACCOUNT_LINK_TOKEN = "account_link_token_";
    // 账号合并token缓存时间(分钟)
    public static final int CACHE_TIME_ACCOUNT_LINK_TOKEN = 5;

    /**
     * 用户设置的默认浏览器语言
     */
    public static final String DEFAULT_LANG = "DEFAULT_LANG";

    /**
     * MFA登录时验证的批次号
     */
    public static final String ATOMGIT_MFA_VERIFY_ID = "ATOMGIT_MFA_VERIFY_ID";


}
